home *** CD-ROM | disk | FTP | other *** search
- --= SID = SIMTEL20 Ada Software Repository Item Description File = SID =--
- -- UNIT NAME : VARIABLE_LENGTH_DIRECT_IO
- -- VERSION : 1.0
- -- REVIEW CODE :
- -- DDN ADDRESS : WOODY%TI-EG@CSNET-RELAY
- -- AUTHOR : Patrick Kopson
- -- : Texas Instruments
- -- COPYRIGHT : (c) 1985
- -- DATE CREATED : 01 APR 85
- -- DATE RELEASED : 03 DEC 85
- -- DATE LAST UPDATED : 03 DEC 85
- -- LOCATION : C2MUG
- -- LOCATION : ASR
- -- ENVIRONMENT : VAX 11/785 VMS 4.1
- --= CLASSIFICATION ===============================================--
- -- CATEGORY LEVEL 1 : COMPONENTS
- -- CATEGORY LEVEL 2 : INPUT/OUTPUT
- -- CATEGORY LEVEL 3 : Variable Length Direct I/O
- -- CATEGORY LEVEL 4 :
- -- KEYWORD : DIRECT_IO
- -- KEYWORD : Varible-Length IO
- -- INDEX : Direct I/O
- -- INDEX : I/O, Direct
- -- INDEX : Variable-Length I/O
- -- INDEX : I/O, Variable-Length
- -- TAXONOMY :
- -- DEPENDENCIES :
- -- SEE ALSO :
- --= FILE LISTING ===============================================--
- -- FILE SPECS : PD:<ADA.COMPONENTS>VLENGTHIO.*
- -- DIRECTORY DISPLAY :
- -- Directory PD:<ADA.COMPONENTS>
- -- File Name Byte Count Line Count
- -- --------------- ---------- ----------
- -- VLENGTHIO.PRO 3883 77
- -- VLENGTHIO.SRC 120626 3297
- -- =============== ========== ==========
- -- 2 Files 124509 3374
- --= ABSTRACT ===============================================--
- -- This is a package similar to DIRECT_IO that operates on
- -- records of variable length. The body of this package may use CAIS
- -- utilities in the future.
- --
- -- This package allows the user to write elements of differing
- -- lengths to a single direct access file. This package can be used to
- -- write data of all types to a single file (with the aid of
- -- UNCHECKED_CONVERSION). The DATA_FILE_IO package in the Ada repository
- -- serves as an example of how this can be accomplished.
- --
- -- This package also reduces the time-per-byte-of-data-transfered
- -- by reducing the number of calls to the run time libraray routines
- -- associated with the predefined generic package DIRECT_IO. This is
- -- accomplished by placing many incoming records into a large buffer and
- -- then writng the entire buffer to an external file as a single element
- -- (vice versa for reading). Bytes_Per_Block, the only generic parameter
- -- for this package, determines the size (in bytes) of this buffer.
- --= REVISION HISTORY ===============================================--
- --
- -- DATE VERSION AUTHOR HISTORY
- -- 12/3/85 1.0 Patrick Kopson Initial Release
- --= RELEASE NOTICE ===============================================--
- -- This prologue must be included in all copies of this software.
- --
- -- This software is copyright by the author.
- --
- -- This software is released to the Ada community.
- -- This software is released to the Public Domain (note:
- -- software released to the Public Domain is not subject
- -- to copyright protection).
- -- Restrictions on use or distribution: NONE
- --= DISCLAIMER ===============================================--
- -- This software and its documentation are provided "AS IS" and
- -- without any expressed or implied warranties whatsoever. No warranties
- -- as to performance, merchantability, or fitness for a particular
- -- purpose exist.
- -- The user is advised to test the software thoroughly before
- -- relying on it. The user must assume the entire risk and liability of
- -- using this software. In no event shall any person or organization of
- -- people be held responsible for any direct, indirect, consequential or
- -- inconsequential damages or lost profits.
- --======================================================================--
-